package com.team2.outpatient_sys.dao;

import com.team2.outpatient_sys.pojo.DoctorSchedule;
import com.team2.outpatient_sys.pojo.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface DoctorScheduleDao {

    @Select("SELECT s.* FROM doctor_schedule d left join schedule s on d.schedule_id = s.id WHERE d.doctor_id=#{doctorId}")
    List<Schedule> findByDoctorId(Long doctorId);
}
